<?php
/**
 * Created by PhpStorm.
 * User: 周超
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class FontsBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>  ['web','auth','permissions.check'],
            'prefix' => 'backstage/fonts',], function ($router) {
            $router->get('list',['uses' =>'Backstage\FontController@getList'])->name('get.fonts.list');
            $router->get('update/{font_id}',['uses' =>'Backstage\FontController@getUpdate'])->name('get.fonts.list.update');
            $router->get('add',['uses' =>'Backstage\FontController@getAdd'])->name('get.fonts.list.add');
            $router->post('add',['uses' =>'Backstage\FontController@postAdd'])->name('post.fonts.list.add');
            $router->post('update',['uses' =>'Backstage\FontController@postUpdate'])->name('post.fonts.list.update');
            $router->get('delete/{font_id}',['uses' =>'Backstage\FontController@getDelete'])->name('get.fonts.list.delete');
        });
    }
}